package liportest.dependenttest;

import liportest.model.OrderModel;

import java.util.Map;
public interface IOrderService {
    //创建新订单
    OrderModel create();

    //发起支付
    OrderModel pay(int id);

    //订单发货
    OrderModel deliver(int id);

    //订单收货
    OrderModel receive(int id);

    //获取所有订单信息
    Map<Integer, OrderModel> getOrders();
}